@charset "utf-8";

/* 公共样式 */

* {
	box-sizing: border-box;

	//  overscroll-behavior: contain;/*防止父级过度滚动*/
}

:root {
	scroll-behavior: smooth;
}

html,
body,
h1,
h2,
h3,
h4,
p,
form,
button,
input,
select,
ul,
ol,
dl,
dd {
	padding: 0;
	margin: 0;
}

body,
html {
	width: 100%;
	height: 100%;

	/* overflow-x: hidden; */
}

body {
	/* font-size: .2rem; */
	font-family: 'PingFang SC-Regular', 'PingFang SC', sans-serif;

	/* 修正移动设备字体变化 */
	text-size-adjust: 100%;
	min-height: 100vh;
}

ul,
li {
	list-style: none;
}

a {
	color: inherit;
	outline: none;
	text-decoration: none;
	background: transparent; /* 修正win8系统IE连接灰色背景 */
	&:active {
		text-decoration: none;
		outline: 0;
	}

	/* 去掉点击链接时的虚线外框 */
	&:focus {
		outline-style: none;
		-moz-outline-style: none;
	}
}

img {
	border: 0;
	display: block;
	object-fit: cover;
	width: 100%;
}

p,
span {
	word-wrap: break-word;
	word-break: break-all;
}

button {
	border: none;
	outline: none;
	background: none;
}

/** 去掉input默认样式 **/

input {
	border: none;
	outline: none;
}

input::-webkit-search-cancel-button {
	display: none;
}

input[type='search']::-ms-clear {
	display: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	appearance: none !important;
}

/* textarea */
textarea {
	border: none;
	outline: none;
	resize: none;
}
